import {
  service
} from "./request";

const mockApi = {
  mapUrl: window.origin + '/map.json',
  mockConfig: window.origin + '/mockConfig.json',
  community: window.origin + '/community.json',
}

/**
 * login func
 * parameter:
 * @param parameter
 * @returns {*}
 */
export function mapUrl() {
  return service({
    url: mockApi.mapUrl,
    method: 'get'
  })
}

export function mockConfig() {
  return service({
    url: mockApi.mockConfig,
    method: 'get'
  })
}
export function community() {
  return service({
    url: mockApi.community,
    method: 'get'
  })
}